
import javax.swing.ImageIcon;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Robin
 */
public class TestKlasse {
    private String onderwerp;
    private String tekst;
    private String imagePath;
    private ImageIcon image;


    public TestKlasse(String onderwerp, String tekst, String imagePath){
        this.onderwerp=onderwerp;
        this.tekst=tekst;
        this.imagePath=imagePath;
    }
    public String getOnderwerp(){
        return onderwerp;
    }
    public String getTekst(){
        return tekst;
    }
    public ImageIcon getImage(){
        if(image==null){
            image=new ImageIcon(getClass().getResource(imagePath));
        }
        return image;
    }


}
